<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>


<div id="funcs" class="easyui-tabs" fit="true" border="false" plain="true">

<c:forEach items="${menus}" var="menu" varStatus="status">
	<c:if test="${menu.groupid==1}">
		<c:if test="${menu.visable==1}">
			<c:if test="${menu.parentid==0}">
				<div title="${menu.name}" class="scroll-pane"
					style="width:1024px;overflow: auto;">
					<div style="padding: 10px">
						<c:forEach items="${menus}" var="submenu">
							<c:if test="${submenu.visable==1}">
								<c:if test="${submenu.parentid==menu.id}">
									<a 
									<c:if test="${cfgs['btntype'] == 'plain'}">
									class="easyui-linkbutton" plain="true"
									data-options="iconCls:'icon-${submenu.icon}16'"
									</c:if>
									<c:if test="${cfgs['btntype'] == 'square'}">
									class="easyui-squarebutton"
									  <c:if test="${submenu.large==0}">
									  data-options="iconCls:'icon-${submenu.icon}16'"
									  </c:if>
									  <c:if test="${submenu.large==1}">
									  data-options="large:true,iconCls:'icon-${submenu.icon}32'"
									  </c:if>
									</c:if>
									<c:if test="${cfgs['btntype'] == 'rectangle'}">
									class="easyui-rectanglebutton"
									  <c:if test="${submenu.large==0}">
									  data-options="iconCls:'icon-${submenu.icon}16'"
									  </c:if>
									  <c:if test="${submenu.large==1}">
									  data-options="large:true,iconCls:'icon-${submenu.icon}32'"
									  </c:if>
									</c:if>	
										href="javascript:open1('<c:url value="${submenu.url }"/>','${submenu.name }');">${submenu.name
										}</a>
								</c:if>
							</c:if>
						</c:forEach>
					</div>
				</div>

			</c:if>
		</c:if>
	</c:if>
</c:forEach>

</div>
<script>
	$(function() {
		<c:if test="${cfgs['menuhover'] == 'hover'}">
		var tabs = $('#funcs').tabs().tabs('tabs');
		for(var i=0; i<tabs.length; i++){
			tabs[i].panel('options').tab.unbind().bind('mouseenter',{index:i},function(e){
				$('#funcs').tabs('select', e.data.index);
			});
		}
		</c:if>
		$('#funcs').tabs('select', '${cfgs["menuselect"]}');
	});
</script>





